﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wekit.Model.Info
{
   [Serializable]
   public class ArticleCategory
    {
       private ICollection<Article> _articles=new List<Article>();

       /// <summary>
       /// 文章分类标识
       /// </summary>
        public virtual string Id { get; set; }

        /// <summary>
        /// 文章分类编码
        /// </summary>
        public virtual string Code { get; set; }


        /// <summary>
        /// 文章分类名称
        /// </summary>
        public virtual string Name { get; set; }

        /// <summary>
        /// 分类排序顺序
        /// </summary>
        public virtual int SortNo { get; set; }

        /// <summary>
        /// 文章分类描述
        /// </summary>
        public virtual string Remark { get; set; }

        /// <summary>
        /// 文章分类所拥有的文章
        /// </summary>
        public virtual ICollection<Article> Articles { 
            get { return _articles; }
            set { this._articles = value; }
        }

        /// <summary>
        /// 分类创建时间
        /// </summary>
        public virtual DateTime Created { get; set; }

        /// <summary>
        ///  获取分类的父节点信息
        /// </summary>
        public virtual ArticleCategory Parent { get; set; }

        /// <summary>
        ///  获取文章分类的子节点信息
        /// </summary>
        public virtual ArticleCategory Childern { get; set; }
    }
}
